<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>构造函数</title>
		<script>
		 function Person(name,age,addr,phone){
			 this.name=name;
			 this.age=age;
			 this.addr=addr;
			 this.phone=phone;
			 this.show=function(){
				 alert("名字："+this.name+",地址："+this.addr);
			 }
		 }
		 var p=new Person("老吴",32,"合肥","13813494949");
		 p.show();
		 console.log(p);
		 alert(p.constructor==Person);
		 console.log(p.constructor);
		 alert(p instanceof Person);
		 alert(p instanceof Object);
		 //console.log(Date.constructor);
		</script>
	</head>
	<body>
	</body>
</html>
